package com.hnevc.gui;

import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;

public class FlowLayoutDemo extends JFrame{

	JButton button1,button2 , button3;
	public FlowLayoutDemo(){
		this.setLocation(200, 200);
		this.setSize(200, 200);
		
		setLayout(new FlowLayout());
		button1 = new JButton("按钮1");
		button2 = new JButton("按钮2");
		button3 = new JButton("按钮3");
		this.add(button1);
		this.add(button2);
		this.add(button3);
		
		this.setVisible(true);
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		new FlowLayoutDemo();
	}

}
